package com.community.common.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 进出记录表
 * </p>
 *
 * @author superman
 * @since 2020-08-02
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PublicUserVo implements Serializable {

    private static final long serialVersionUID = 5683070854147775553L;
    /**
     * id
     */
    private String id;

    /**
     * 微信唯一识别号openId
     */
    private String openId;
    /**
     * 姓名
     */
    private String name;
    /**
     * 手机号
     */
    private String phone;

    /**
     * 身份证号
     */
    private String idCard;
    /**
     * 性别
     */
    private String sex;

    /**
     * 年龄
     */
    private String age;
    /**
     * 小区id
     */
    private String communityId;
    private String ownerHouseId;
    /**
     * 小区名
     */
    private String communityName;
    /**
     * 楼栋号
     */
    private String ldh;
    /**
     * 门牌号
     */
    private String mph;
    /**
     * 审核状态 0-未审核 1-审核通过 2-审核不通过
     */
    private String checkState;

    /**
     * 照片URL
     */
    private String imgUrl;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private Integer friendNumber;

}
